package com.taokatao.cardmee.db.model;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by LY on 2016/9/12.
 */

@Entity
public class User extends DBModel {
    /**
     * 用户id
     */
    @Id private Long uuid;
    /**
     * 用户昵称
     */
    @Property(nameInDb = "USERNAME") private String userName;
    /**
     * 头像地址
     */
    @Property(nameInDb = "HEAD_IMG_URL") private String headImgUrl;
    /**
     * 真实姓名
     */
    @Property(nameInDb = "REAL_NAME") private String realName;
    /**
     * 生日 yyyymmdd
     */
    @Property(nameInDb = "BIRTHDAY") private Long birthday;
    /**
     * 0：女,1：男
     */
    @Property(nameInDb = "SEX") private Integer sex;
    public static final int GENDER_MALE = 1;
    public static final int GENDER_FEMALE = 0;
    /**
     * 卡的张数
     */
    @Property(nameInDb = "CARD_COUNT") private Integer cardCount;
    /**
     * 积分
     */
    @Property(nameInDb = "INTEGRAL") private Integer integral;
    /**
     * 用户电话
     */
    @Property(nameInDb = "USER_TEL") private String userTel;

    /**
     * 用户头像背景
     */
    @Property(nameInDb = "AVATAR_BACKGROUND") private String backImgIcon;

    @Generated(hash = 1475572090)
    public User(Long uuid, String userName, String headImgUrl, String realName,
            Long birthday, Integer sex, Integer cardCount, Integer integral,
            String userTel, String backImgIcon) {
        this.uuid = uuid;
        this.userName = userName;
        this.headImgUrl = headImgUrl;
        this.realName = realName;
        this.birthday = birthday;
        this.sex = sex;
        this.cardCount = cardCount;
        this.integral = integral;
        this.userTel = userTel;
        this.backImgIcon = backImgIcon;
    }

    @Generated(hash = 586692638)
    public User() {
    }

    public Long getUuid() {
        return this.uuid;
    }

    public void setUuid(Long uuid) {
        this.uuid = uuid;
    }

    public String getUserName() {
        return this.userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getHeadImgUrl() {
        return this.headImgUrl;
    }

    public void setHeadImgUrl(String headImgUrl) {
        this.headImgUrl = headImgUrl;
    }

    public String getRealName() {
        return this.realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public Long getBirthday() {
        return this.birthday;
    }

    public void setBirthday(Long birthday) {
        this.birthday = birthday;
    }

    public Integer getSex() {
        return this.sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getCardCount() {
        return this.cardCount;
    }

    public void setCardCount(Integer cardCount) {
        this.cardCount = cardCount;
    }

    public Integer getIntegral() {
        return this.integral;
    }

    public void setIntegral(Integer integral) {
        this.integral = integral;
    }

    public String getUserTel() {
        return this.userTel;
    }

    public void setUserTel(String userTel) {
        this.userTel = userTel;
    }

    public String getBackImgIcon() {
        return this.backImgIcon;
    }

    public void setBackImgIcon(String backImgIcon) {
        this.backImgIcon = backImgIcon;
    }


}
